from django.db import models


"""
学生信息表
"""

class Students(models.Model):
    name = models.CharField(max_length=12,verbose_name='姓名',null=False)
    school = models.CharField(max_length=32,verbose_name='学校',null=False,blank=True)
    grade = models.CharField(max_length=32,verbose_name='年级',null=False)
    the_class = models.CharField(max_length=32,verbose_name='班级',null=False)
    student_id = models.CharField(max_length=18,verbose_name='学号',null=True ,blank=True,unique=True)
    id_number = models.CharField(max_length=18,verbose_name='身份证号',null=False,unique=True)

    class Meta:

        db_table = 'students'
        verbose_name = '学生信息表'
        verbose_name_plural = verbose_name